cmake_minimum_required(VERSION 3.8)

project("YDXRender")

set(CMAKE_CXX_STANDARD 17)

aux_source_directory(${PROJECT_SOURCE_DIR}/src DIR_SRCS_)

aux_source_directory(${PROJECT_SOURCE_DIR}/3Party/imgui DIR_3Party)

add_library(${PROJECT_NAME} STATIC ${DIR_SRCS_} ${DIR_3Party} )

target_include_directories(${PROJECT_NAME}
	PUBLIC 
	${PROJECT_SOURCE_DIR}/include 
	${PROJECT_SOURCE_DIR}/3Party)


include(cmake/Helper.cmake)
LINK_LIB(YMesh)

set(CMAKE_CXX_STANDARD 17)
aux_source_directory(${PROJECT_SOURCE_DIR}/Sandbox SANDBOX_SRC)
add_executable(sandbox ${SANDBOX_SRC})


target_link_libraries(sandbox PRIVATE YDXRender YMesh)